package cn.tedu.ymg.admin.service.impl;

import cn.tedu.ymg.admin.mapper.PermissionMapper;
import cn.tedu.ymg.admin.pojo.vo.PermissionListItemVO;
import cn.tedu.ymg.admin.service.IPermissionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class PermissionServiceImpl implements IPermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<PermissionListItemVO> list() {
        log.debug("开始处理【查询权限列表】的业务，无参数");
        List<PermissionListItemVO> list = permissionMapper.list();
        return list;
    }
}
